package com.sjk.flink.exeception;

/**
 * @author SAMA
 */
public enum ErrorCode {

    CODE_E00000("E00000", "json的配置文件不存在。"),
    CODE_E00001("E00001", "schema配置文件不存在。"),
    CODE_E00002("E00002", "json schema 校验系统错误。"),
    CODE_E00003("E00003", "校准规则未定义。"),
    CODE_E00004("E00004", "中文数据有乱码。"),
    CODE_E00005("E00005", "专项代码未设置。"),
    CODE_E00006("E00006", "消费的topic未设置"),
    CODE_E00007("E00007", "校对解析错误"),
    CODE_E00008("E00008", "字段校对错误"),
    CODE_E00009("E00009", "MultipleStream定义不存在"),
    CODE_E00010("E00010", "stream.properties中定义参数设置不正确"),

    CODE_E00011("E00011", "relevance定义不存在"),
    ;

    private String msg;

    private String code;

    private ErrorCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return this.msg;
    }

    public String getCode() {
        return this.code;
    }

}
